Crate axum_tracing_opentelemetry
source ·Functions
- Search the current opentelemetry trace id into the Context from the current tracing’span. This function can be used to report the trace id into the error message send back to user.
- Configure the global propagator based on content of the env variable OTEL_PROPAGATORS Specifies Propagators to be used in a comma-separated list. Default value:
"tracecontext,baggage"
Example:export OTEL_PROPAGATORS="b3"
Accepted values forOTEL_PROPAGATORS
are: - OpenTelemetry tracing middleware.
- OpenTelemetry tracing middleware for gRPC.